import { RouteRecordRaw } from "vue-router";
// 首页模块
const router: Array<RouteRecordRaw> = [
    {
        path: "/material",
		name: "material",
        redirect:"/material/all",
		component: () => import("@/layout/homeIndex.vue"),
		meta: {
			title: "首页",
		},
        children:[
            {
                path: "/material/all",
                component: () => import("@/views/Material/index.vue"),
                meta: {
                    title: "素材库",
                }
            },
            {
                path: "/material/image",
                component: () => import("@/views/Material/index.vue"),
                meta: {
                    title: "素材库",
                }
            },
            {
                path: "/material/video",
                component: () => import("@/views/Material/index.vue"),
                meta: {
                    title: "素材库",
                }
            },
            {
                path: "/material/copywriting",
                component: () => import("@/views/Material/index.vue"),
                meta: {
                    title: "素材库",
                }
            },
            {
                path: "/material/detail",
                component: () => import("@/views/Material/DetailCopy/index.vue"),
                meta: {
                    title: "素材库",
                }
            },
            {
                path: "/material/edit",
                component: () => import("@/views/Material/DetailEdit/index.vue"),
                meta: {
                    title: "素材库",
                }
            }
        ]
    },
	
];

export default  router;